
package Game;

import Animation.Circle;
import Animation.Die;
import Animation.Square;
import java.util.ArrayList;
import java.util.Random;
/**
 *
 * @author Kevin Tracy
 */
public class Dice {

    Random random;

    Square one;
    Square two;
    Square three;
    Square four;
    Square five;
    Square six;

    Circle dot;

    public Dice()
    {
        random = new Random();
    }

    public ArrayList<Die> rollDice(int numDice, int numSides)
    {
        int result = 0;

        ArrayList<Die> dice = new ArrayList<Die>();
        while (numDice > 0)
        {
            result = random.nextInt(numSides) + 1;
            if(numDice == 1)
                dice.add(new Die("dice", 10, 90, 80, result));
            else
                dice.add(new Die("dice", 110, 90, 80 , result));

            numDice--;
        }
        return dice;
    }

    public int rollDice(int numSides)
    {
        return random.nextInt(numSides) + 1;
    }

    private void createDice(int number)
    {
        
    }

}